import {reactive} from 'vue'
export const useBaseModel = () => {
  const addRoleModel = reactive({
    action:'',//添加还是删除操作
    roleName:'', 
    roleTitle:'',
    remark:'',
    })
    const rules = reactive({
      roleName: [
        { required: true, message: '请输入角色名称', trigger: 'blur' },
      ],
      roleTitle: [
        { required: true, message: '请输入角色标题', trigger: 'blur' },
      ],
      remark: [
        { required: true, message: '请输入角色备注', trigger: 'blur' },
      ]
    })
return {
  addRoleModel,
  rules
}

}